package org.telegram.bot.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.telegram.bot.domain.BotGroup;

/**
 * 群组Mapper接口
 *
 * @author wyx
 * @date 2023-08-17
 */
public interface BotGroupMapper extends BaseMapper<BotGroup>
{

    /**
     * 查询群组列表
     *
     * @param botGroup 群组
     * @return 群组集合
     */
    public List<BotGroup> selectBotGroupList(BotGroup botGroup);
    
    int updateChatId(@Param("newChatId") Long newChatId,@Param("oldChatId") Long oldChatId,@Param("tableName") String tableName);
    
    int deleteChatId(@Param("newChatId") Long newChatId,@Param("tableName") String tableName);
}
